﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="DayUserActReportPage.aspx.cs" Inherits="GtsServer.Manage.IISPage.Page.Report.DayUserActReportPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Content/Jquery/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../../Content/css/Pager.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Content/Jquery/artDialog/jquery.artDialog.source.js?skin=blue"
        type="text/javascript"></script>
    <script src="../../Content/Jquery/artDialog/plugins/iframeTools.source.js" type="text/javascript"></script>
    <script src="../../Content/Jquery/pager.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var pageSize = 15;
            $("#btnSele").click(function () {
                PageClickFunc(1)
            })

            PageClickFunc(1)

            function PageClickFunc(pageclickednumber) {
                var StartTime = $("#txtStateTime").val();
                var EndTime = $("#txtEndTime").val();
                $.ajax({
                    type: "post",
                    data: { action: "GetList", pageIndex: pageclickednumber, pageSize: pageSize, StartTime: StartTime, EndTime: EndTime },
                    datatype: "json",
                    url: "../../Ajax/DayUserActReportAjax.ashx",
                    beforSend: function () {
                    },
                    success: function (data) {
                        if (data != null) {
                            var json = $.parseJSON(data).json;
                            var pageCount = $.parseJSON(data).flag;
                            var tbody = "";
                            $.each(json, function (k, v) {
                                tbody += "<tr>"
                                tbody += "<td><lable name='lblTime'>";
                                tbody += v.ReportTime;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblNewUserCount'>";
                                tbody += v.NewUserCount;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblEnterGameCount'>";
                                tbody += v.EnterGameCount;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblReceiveCaidanCount'>";
                                tbody += v.ReceiveCaidanCount;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblCoreUserCount'>";
                                tbody += v.CoreUserCount;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblActChargeCount'>";
                                tbody += v.ActChargeCount;
                                tbody += "</lable></td>";
                                tbody += "<td><lable name='lblChargeSuccessCount'>";
                                tbody += v.ChargeSuccessCount;
                                tbody += "</lable></td>";
                                tbody += "</tr>"
                            })
                            $("#tb1").empty().append(tbody)
                            $("#pager").pager({ pagenumber: pageclickednumber, pagecount: Math.ceil(pageCount / pageSize), buttonClickCallback: PageClickFunc });
                        }
                    },
                    complete: function () {
                    },
                    error: function () {
                    }
                })
            }
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <input type="text" id="txtStateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
        class="Wdate" />
    <input type="text" id="txtEndTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
        class="Wdate" />
    <input type="button" id="btnSele" value="搜索" />
    <div>
        <table border='1'>
            <thead>
                <tr>
                    <td>
                        日期
                    </td>
                    <td>
                        新用户数
                    </td>
                    <td>
                        进入过游戏人数
                    </td>
                    <td>
                        完成新手教程人数
                    </td>
                    <td>
                        核心用户数
                    </td>
                    <td>
                        激活计费数
                    </td>
                    <td>
                        计费成功数
                    </td>
                </tr>
            </thead>
            <tbody id="tb1">
            </tbody>
        </table>
        <div id="pager" style="float: right;">
        </div>
    </div>
</asp:Content>
